package com.googlecode.cardamomo.ermodel;

import java.util.Vector;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;

public class Import {
	
	protected String name;
	
	protected static Vector<DataType> datatypes = null;

	@XmlAttribute
	public String getName() {
		return name;
	}

	public void setName(String name) {
		DataDictionary dd = DataDictionary.importDictionary(name);
		datatypes.addAll(dd.getTypes());
		this.name = name;
	}

	@XmlTransient
	public Vector<DataType> getDatatypes() {
		return datatypes;
	}

	public static void setDatatypes(Vector<DataType> dtypes) {
		datatypes = dtypes;
	}

}
